﻿import random
print("马牛逼计算机v1.2.0.1")
print("作者：某道")
print("！！！严禁恶搞！！！")
x = input("请输入第一个数（仅支持浮点数）：")
while type(x) != class int or class 'float' :
    x = input("是不是想恶搞？重新NM输入:)：")
    
ys = input("请输入运算方式（仅支持“加”，“减”，“乘”，“除以”，“乘方”，“开方”）：")
while ys != "加" :
    while ys != "减" :
        while ys != "乘" :
            while ys != "除以" :
                while ys != "乘方" :
                    while ys != "开方" :
                        ys = input("拒绝恶搞，从我做起:-D，重新输入：")
                        
                    
                
            
        
    

y = input("请输入第二个数（仅支持浮点数）：")
while type(y) != class int or class 'float' :
    y = input("是不是想恶搞？重新NM输入:)：")
    
x = float(x)
y = float(y)
r1 = random.randint(-10000000000,10000000000)
r2 = random.randint(-100000,100000)
r3 = random.randint(1,6)
while r2 == 0 :
    r2 = random.randint(-100000,100000)
    if r2 != 0 :
        break

    
while ys == "加" :
    z = x + y + r1 / r2
    break

while ys == "减" :
    z = x - y + r1 / r2
    break

while ys == "乘" :
    z = x * y + r1 / r2
    break

while ys == "除以" :
    while y == 0 :
        y = input("除数不能为0，请重新输入:)：")
        while type(y) != int or float :
            y = input("是不是想恶搞？重新NM输入:)：")

            
    y = float(y)
    z = x / y + r1 / r2
    break

while ys == "乘方" :
    z = x ** y + r1 / r2
    break

while ys == "开方" :
    while y == 0 :
        y = input("开方幂数不能为0，请重新输入:)：")
        while type(y) != int or float :
            y = input("是不是想恶搞？重新NM输入:)：")

            
    y = float(y)
    z = x ** 1 / y + r1 / r2
    break

while r3 == 1 :
    hd = "你好像有内大并"
    break

while r3 == 2 :
    hd = "你有脑AI吧？我肖恩"
    break

while r3 == 3 :
    hd = "没有马牛逼也照样牛逼"
    break

while r3 == 4 :
    hd = "你脑婆爆料了！"
    break

while r3 == 5 :
    hd = "你被日了！"
    break

while r3 == 6 :
    hd = "拒绝盗版马牛逼计算机，从我做起"
    break

print("结果是",z,"，",hd,sep = '')
